package cn.ssm.service.impl;

import cn.ssm.mapper.BillMapper;
import cn.ssm.pojo.Bill;
import cn.ssm.pojo.BillProvider;
import cn.ssm.service.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BillServiceImpl implements BillService {
    @Autowired
    private BillMapper billMapper;
    @Override
    public List<BillProvider> getBills(Bill bill) {
        return billMapper.getBills(bill);
    }

    @Override
    public BillProvider getBillByBid(Integer bid) {
        return billMapper.getBillByBid(bid);
    }

    @Override
    public int addBill(Bill bill) {
        return billMapper.addBill(bill);
    }

    @Override
    public int updateBill(Bill bill) {
        return billMapper.updateBill(bill);
    }

    @Override
    public int deteleBillByBid(Integer bid) {
        return billMapper.deteleBillByBid(bid);
    }
}
